/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Aplicacion;

import Control.Controlador;
import Vista.Main_Frame;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

/**
 *
 * @author Administrador
 */
public class AplicacionPrincipal {

    public static void main(String[] args) {
        AplicacionPrincipal aplicacion =
                new AplicacionPrincipal();
        aplicacion.init();
        //System.out.println("** Programa finalizado normalmente.");
    }

    public void init() {

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            JFrame.setDefaultLookAndFeelDecorated(true);
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }

        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                mostrarInterfaz();
            }
        });

    }

    public void mostrarInterfaz() {
        Controlador gestorPrincipal =
                new Controlador();
        Main_Frame principal =
                new Main_Frame(gestorPrincipal);

        principal.init();
    }
}
